home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / poetmf / inc / persdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-22  |  2.8 KB  |  83 lines

  1. // ******************************************************************
  2. //
  3. //  persdlg.h : header file
  4. //
  5. //    Most of this file is generated by ClassWizard 
  6. //
  7. //  (C) 1993 POET Software
  8. //
  9. // ******************************************************************
  10.  
  11. #include "..\resource.h"    //    resource IDs
  12.  
  13. #include <poet.hxx>        // header to POET enviroment
  14. #include <base.hxx>        // generated by PTXX for the database base
  15. #include <hello.hxx>    // generated by PTXX when it processes hello.hcd
  16.  
  17. #ifndef __PERSDLG_H_
  18. #define __PERSDLG_H__
  19.                                             
  20.                                             
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CEditPersDlg dialog
  23.  
  24.  
  25. class CEditPersDlg : public CDialog
  26. {
  27. protected:
  28.     Person            *person;    //    pointer to persistent class Person
  29.     PersonAllSet    *allperson;    //    pointer to its AllSet
  30.  
  31.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  32.     virtual void ClearControls ();
  33.     virtual void Show ();    //    display person in dialog
  34.     virtual void Fill ();   //    actualize person with dialog data
  35.     void Init ();           //  Init calls other virtual member functions
  36.     virtual void NewPersonPtr ();     //  new pointer person 
  37.     virtual void NewAllSetPtr ();   //    new pointer allperson and assign
  38.                                     //    it to database
  39.  
  40.     void LoadBitmap ( char * Name, PtBlob * pic );    //    load .bmp file into Blob
  41.     void POET_Error ( char *text, int error );        
  42.  
  43.     // Generated message map functions
  44.     //{{AFX_MSG(CEditPersDlg)
  45.     afx_msg void OnClickedAdrUpdate();
  46.     afx_msg void OnClickedAdrNew();
  47.     afx_msg void OnClickedStep();
  48.     afx_msg void OnClickedStore();
  49.     afx_msg void OnClickedNext();
  50.     afx_msg void OnClickedCopy();
  51.     afx_msg void OnClickedDelete();
  52.     afx_msg void OnClickedPrev();
  53.     afx_msg void OnClickedAsspic();
  54.     afx_msg void OnChangeEditFirstname();
  55.     afx_msg void OnKillfocusEditFirstname();
  56.     afx_msg void OnClickedAdrDelete();
  57.     afx_msg void OnClickedClear();
  58.     afx_msg void OnDblclkListAddresses();
  59.     afx_msg void OnDblclkListFirstnames();
  60.     afx_msg void OnClickedShowpic();
  61.     virtual BOOL OnInitDialog();
  62.     //}}AFX_MSG
  63.     DECLARE_MESSAGE_MAP()
  64. public:
  65. // Dialog Data
  66.     //{{AFX_DATA(CEditPersDlg)
  67.     enum { IDD = IDR_PERS_EDIT };
  68.     CListBox    m_CListFirstnames;    //    Listbox control firstnames
  69.     CListBox    m_CListAddresses;   //    Listbox control addresses
  70.     CString        m_strName;          //    Edit control name
  71.     CString        m_strFirstname;        //    Edit control firstname
  72.     //}}AFX_DATA           
  73.  
  74.     int item;
  75.     int firstname_is_modified;      //    modify-flag for Edit control firstname
  76.  
  77.     CEditPersDlg(CWnd* pParent = NULL, UINT nIDTemp = IDD);        // constructor different from
  78.         //    standard constructor generated by ClassWizard, cause this class is also used as base class
  79.     ~CEditPersDlg ();    
  80. };
  81.  
  82. #endif  // __PERSDLG_H__ 
  83.